<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>



    <h1>&yen;</h1>
    <script>


        var i = 0;
        function fn() {
            i += '1';
            return '2';
        }
        // i+= fn();
        i = i + fn();

        console.log(i)
    </script>

</body>

</html>